package com.jt.demo;

import org.springframework.stereotype.Component;
//Spring容器管理Map<类名首字母小写user,实例化后的对象>
@Component
public class User {//Spring容器通过反射机制实例化对象
    public void say(){
        System.out.println("通过@Component注解实例化对象");
    }
}
